package com.harboursoftware.xstorage.io;

import java.io.IOException;
import java.io.InputStream;

public class EmptyInputStream extends InputStream {
    private static EmptyInputStream instance = new EmptyInputStream();
    
    private EmptyInputStream() {
    }
    
    public static EmptyInputStream getInstance() {
        return instance;
    }
    
    @Override
    public int read() throws IOException {
        return -1;
    }

    @Override
    public void close() throws IOException {
        // ignore
    }
}
